$(document).ready(function(){
	
	
	//open-close footer
	$("#submitLinkLabel").click(function(){
		if($("#submitLinkForm").is(":hidden")){
			
			$("#submitLinkForm").show(400, 'swing');

			$("#submitLinkContainer").children(".footer_arrow").css({
				'border-right': '6px solid transparent',
				'border-left': '6px solid transparent',
				'border-top': '9px solid #7D7D7D',
				'border-bottom': 'none'
			});
		}
		else{
			$("#submitLinkForm").hide(400, 'swing');
			
			$("#submitLinkContainer").children(".footer_arrow").css({
				'border-top': '6px solid transparent',
				'border-bottom': '6px solid transparent',
				'border-left': '9px solid #7D7D7D',
				'border-right': 'none'
			});
		}
	});
	
	
	//open and close folders in navigation
	$(".folder>label").click(function(){
		if($(this).siblings(".sublist").is(":hidden")){
			$(this).siblings(".foldericon").css({
				'border-right': '4px solid transparent',
				'border-left': '4px solid transparent',
				'border-top': '6px solid #7D7D7D',
				'border-bottom': 'none'
			});
			$(this).siblings(".sublist").show();
		}
		else{
			$(this).siblings(".foldericon").css({
				'border-top': '4px solid transparent',
				'border-bottom': '4px solid transparent',
				'border-left': '6px solid #7D7D7D',
				'border-right': 'none'
			});
			$(this).siblings(".sublist").hide();
		}
	});
	
	
});
